package com.ybkj.o2o.zhuanche.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ybkj.o2o.zhuanche.entity.CarTypeDetail;

public interface CarTypeDetailMapper {
  List<CarTypeDetail> selectAll(@Param("appKey") String appKey);

  int insert(CarTypeDetail carTypeDetail);

  int update(@Param("id") Long id, @Param("photo") String photo, @Param("priceDetail") String priceDetail,
      @Param("startPrice") String startPrice, @Param("timePrice") String timePrice,
      @Param("miliagePrice") String miliagePrice, @Param("appKey") String appKey);

  int deleteByCarTypeId(@Param("carTypeId") Long carTypeId,@Param("appKey") String appKey);
  
  int deleteByAppKey(@Param("appKey") String appKey);
}
